<%@ Page Language="C#" MasterPageFile="~/Common/WebSiteMaster.master" AutoEventWireup="true" 
    CodeBehind="J_UpdateMode.aspx.cs" Inherits="ScottCateAjax2008.Lesson05.J_UpdateMode" 
    Title="UpdateMode Conditional/Always" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <asp:ScriptManager id="ScriptManager1" runat="server" />
    
    <asp:UpdatePanel id="UpdatePanel1" UpdateMode="Always" runat="server">
        <ContentTemplate>
            Time1:<asp:Label id="Time1" runat="server" />
            <asp:Button id="Button1" text="Button1" OnClick="UpdateTimes1" runat="server" />
            UpdateMode="Always"
        </ContentTemplate>
    </asp:UpdatePanel>
    
    <asp:UpdatePanel id="UpdatePanel2" UpdateMode="Always" runat="server">
        <ContentTemplate>
            Time2:<asp:Label id="Time2" runat="server" />
            <asp:Button id="Button2" text="Button2" OnClick="UpdateTimes2" runat="server" />
            UpdateMode="Always"
        </ContentTemplate>
    </asp:UpdatePanel>
    
    <asp:UpdatePanel id="UpdatePanel3" UpdateMode="Conditional" runat="server">
        <ContentTemplate>
            Time3:<asp:Label id="Time3" runat="server" />
            <asp:Button id="Button3" text="Button3" OnClick="UpdateTimes3" runat="server" />
            UpdateMode="Conditional" (Called in UpdateTimes2)
        </ContentTemplate>
    </asp:UpdatePanel>
    
    <asp:UpdatePanel id="UpdatePanel4" runat="server">
        <ContentTemplate>
            Time4:<asp:Label id="Time4" runat="server" />
            <asp:Button id="Button4" text="Button4" OnClick="UpdateTimes4" runat="server" />
            UpdateMode Not Supplied (defaults "Always")
        </ContentTemplate>
    </asp:UpdatePanel>
    
    

</asp:Content>
